#app {
  // 主体区域 Main container
  .main-container {
    position: relative;
    min-height: 100%;
    margin-left: @sideBarWidth;
    overflow: hidden;
    transition: margin-left 0.28s;
  }

  // 侧边栏 Sidebar container
  .sidebar-container {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1001;
    width: @sideBarWidth !important;
    height: 100%;
    overflow: hidden;
    font-size: 0px;
    box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35);
    transition: width 0.28s;

    //reset element-ui css
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
    }

    .scrollbar-wrapper {
      overflow-x: hidden !important;

      .el-scrollbar__view {
        height: 100%;
      }
    }

    .el-scrollbar__bar.is-vertical {
      right: 0px;
    }

    .el-scrollbar {
      height: 100%;
    }

    &.has-logo {
      .el-scrollbar {
        height: calc(100% - 50px);
      }
    }

    .is-horizontal {
      display: none;
    }

    a {
      display: inline-block;
      width: 100%;
      overflow: hidden;
    }

    .svg-icon {
      height: @f12;
      margin-right: 16px;
    }

    .el-menu {
      width: 100% !important;
      height: 100%;
      background-color: @menuBg;
      border: none;
      .el-menu-item,
      .el-submenu__title {
        height: 50px;
        line-height: 50px;
        color: @menuText;
        & i {
          line-height: @f16;
          color: @menuText;
        }
      }
      .el-submenu {
        background-color: @menuBg;
      }
    }

    .submenu-title-noDropdown.is-active,
    .el-menu-item.is-active {
      color: @menuTextActive;
      // border-right: 3px solid @active;
      background-color: @menuActive;
      &:hover {
        color: @menuTextActive !important;
        background-color: @menuActive !important;
      }
    }

    // menu hover
    .submenu-title-noDropdown,
    .el-submenu__title {
      font-size: @f16;

      &:hover {
        color: @menuTextActive;
        background-color: @subMenuBg;
      }
    }

    // 一级菜单点击获焦点
    .is-active > .el-submenu__title {
      color: @menuTextActive;
      background-color: @subMenuBg;
    }

    & .nest-menu .el-submenu > .el-submenu__title,
    & .el-submenu .el-menu-item {
      min-width: @sideBarWidth - 10px !important;

      &:hover {
        color: @menuTextActive;
        background-color: @subMenuBg;
      }
    }
  }

  .hideSidebar {
    .sidebar-container {
      width: 54px !important;
    }

    .main-container {
      margin-left: 54px;
    }

    .svg-icon {
      margin-right: 0px;
    }

    .submenu-title-noDropdown {
      position: relative;
      padding: 0 !important;

      .el-tooltip {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
        }
      }
    }

    .el-submenu {
      overflow: hidden;

      & > .el-submenu__title {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
        }

        .el-submenu__icon-arrow {
          display: none;
        }
      }
    }

    .el-menu--collapse {
      .el-submenu {
        &.is-active {
          background-color: @menuActive;
        }
        & > .el-submenu__title {
          & > span {
            display: inline-block;
            width: 0;
            height: 0;
            overflow: hidden;
            visibility: hidden;
          }
        }
      }
    }
  }

  .withoutAnimation {
    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}

// 隐藏时
.el-menu--vertical {
  & > .el-menu {
    .svg-icon {
      margin-right: 16px;
    }
  }

  .nest-menu .el-submenu > .el-submenu__title,
  .el-menu-item {
    height: 45px;
    font-size: @f14;
    line-height: 45px;
    color: @menuText;
    background-color: @menuBg;

    &:hover {
      color: @menuActive;
    }
    &.is-active {
      color: @menuTextActive;
      background-color: @menuActive;
    }
  }
}
